<!DOCTYPE html>
<html lang="en-US">
	
<!-- Mirrored from vkuviewdoc.fsq.pub/components/waterfall.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 May 2025 17:31:01 GMT -->
<head>
		<title>Waterfall 瀑布流 | uView Vue3.0 横空出世，继承uView1.0意志，再战江湖，风云再起！</title>
		<meta charset="utf-8">
		<script>
		  var _hmt = _hmt || [];
		  (function() {
		    var hm = document.createElement("script");
		    hm.src = "../../hm.baidu.com/hm34bd.js?1d1565dd0782e66106e6a42c79ed2554";
		    var s = document.getElementsByTagName("script")[0]; 
		    s.parentNode.insertBefore(hm, s);
		  })();
		  </script>
		<meta name="description" content="同时支持 Vue3.0 和 Vue2.0，你没看错，现在 uView 支持 Vue3.0 了！（不支持nvue，此版本为uView1.0的分支）">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="keywords" content="vk-uview,uviewVue3.0,uview,uView,uviewui,uview ui,uviewUI,uViewui,uViewUI,uView UI,uni ui,uni UI,uni-app ui框架,uni-app UI框架,uniapp ui,ui,UI框架,uniapp ui框架,uniapp UI">
		<link rel="preload" href="../assets/css/0.styles.61168ff3.css" as="style"><link rel="preload" href="../assets/js/app.06a5b7ec.js" as="script"><link rel="preload" href="../assets/js/3.b1cc55a0.js" as="script"><link rel="preload" href="../assets/js/4.4b844322.js" as="script"><link rel="preload" href="../assets/js/64.0525bb5d.js" as="script"><link rel="preload" href="../assets/js/19.2b0b9da7.js" as="script"><link rel="preload" href="../assets/js/9.ba52e2b0.js" as="script"><link rel="preload" href="../assets/js/8.70b4860e.js" as="script"><link rel="preload" href="../assets/js/6.2c513bee.js" as="script"><link rel="prefetch" href="../assets/js/1.98a9916e.js"><link rel="prefetch" href="../assets/js/10.038f08bd.js"><link rel="prefetch" href="../assets/js/100.a4e49f4f.js"><link rel="prefetch" href="../assets/js/101.5bb80e81.js"><link rel="prefetch" href="../assets/js/102.341da24c.js"><link rel="prefetch" href="../assets/js/103.59b833cd.js"><link rel="prefetch" href="../assets/js/104.a145c535.js"><link rel="prefetch" href="../assets/js/105.c8fea0c4.js"><link rel="prefetch" href="../assets/js/106.d1e658a7.js"><link rel="prefetch" href="../assets/js/107.5f95aed3.js"><link rel="prefetch" href="../assets/js/108.8d2b2544.js"><link rel="prefetch" href="../assets/js/109.10c99e03.js"><link rel="prefetch" href="../assets/js/11.8e74d8b9.js"><link rel="prefetch" href="../assets/js/110.4a7e9307.js"><link rel="prefetch" href="../assets/js/111.773e8680.js"><link rel="prefetch" href="../assets/js/112.c7465195.js"><link rel="prefetch" href="../assets/js/113.b86e8be8.js"><link rel="prefetch" href="../assets/js/114.9ba8246a.js"><link rel="prefetch" href="../assets/js/115.48e5c3e4.js"><link rel="prefetch" href="../assets/js/116.623d8a73.js"><link rel="prefetch" href="../assets/js/117.d9fc756d.js"><link rel="prefetch" href="../assets/js/118.668a7d9f.js"><link rel="prefetch" href="../assets/js/119.6ca5a6b7.js"><link rel="prefetch" href="../assets/js/12.1490d9ad.js"><link rel="prefetch" href="../assets/js/120.8008a6be.js"><link rel="prefetch" href="../assets/js/121.29c37c36.js"><link rel="prefetch" href="../assets/js/122.00c188a8.js"><link rel="prefetch" href="../assets/js/123.22e24add.js"><link rel="prefetch" href="../assets/js/124.e5837e2d.js"><link rel="prefetch" href="../assets/js/125.bd96786c.js"><link rel="prefetch" href="../assets/js/126.e58693e0.js"><link rel="prefetch" href="../assets/js/127.7df2a7cb.js"><link rel="prefetch" href="../assets/js/128.46d0d44f.js"><link rel="prefetch" href="../assets/js/129.533ad2e4.js"><link rel="prefetch" href="../assets/js/13.26869a5e.js"><link rel="prefetch" href="../assets/js/130.33870daa.js"><link rel="prefetch" href="../assets/js/131.6ed8ceeb.js"><link rel="prefetch" href="../assets/js/132.ddabb1d9.js"><link rel="prefetch" href="../assets/js/133.9ec99fba.js"><link rel="prefetch" href="../assets/js/134.ddf9fd84.js"><link rel="prefetch" href="../assets/js/135.c78b3861.js"><link rel="prefetch" href="../assets/js/136.9f35dad7.js"><link rel="prefetch" href="../assets/js/137.f76e23c3.js"><link rel="prefetch" href="../assets/js/138.527154ce.js"><link rel="prefetch" href="../assets/js/139.20fc60a7.js"><link rel="prefetch" href="../assets/js/14.f7c8080a.js"><link rel="prefetch" href="../assets/js/140.94a3c889.js"><link rel="prefetch" href="../assets/js/141.dbec7630.js"><link rel="prefetch" href="../assets/js/142.01e40518.js"><link rel="prefetch" href="../assets/js/143.e69db0a4.js"><link rel="prefetch" href="../assets/js/144.6b44c549.js"><link rel="prefetch" href="../assets/js/145.be0da9a2.js"><link rel="prefetch" href="../assets/js/146.cf66d7a5.js"><link rel="prefetch" href="../assets/js/147.0d33398d.js"><link rel="prefetch" href="../assets/js/148.7ec3725c.js"><link rel="prefetch" href="../assets/js/149.94b68d3b.js"><link rel="prefetch" href="../assets/js/15.9c539d25.js"><link rel="prefetch" href="../assets/js/150.a3cb5d67.js"><link rel="prefetch" href="../assets/js/151.353415e1.js"><link rel="prefetch" href="../assets/js/152.a0e625f0.js"><link rel="prefetch" href="../assets/js/153.9f9ff9df.js"><link rel="prefetch" href="../assets/js/154.3926195f.js"><link rel="prefetch" href="../assets/js/155.4ff0eab8.js"><link rel="prefetch" href="../assets/js/156.30421ecd.js"><link rel="prefetch" href="../assets/js/16.9311470f.js"><link rel="prefetch" href="../assets/js/17.1d2427af.js"><link rel="prefetch" href="../assets/js/18.9f71dea7.js"><link rel="prefetch" href="../assets/js/20.4e7fd7f2.js"><link rel="prefetch" href="../assets/js/21.eeb64d6d.js"><link rel="prefetch" href="../assets/js/22.eeed70a0.js"><link rel="prefetch" href="../assets/js/23.ebadd966.js"><link rel="prefetch" href="../assets/js/24.623888d6.js"><link rel="prefetch" href="../assets/js/25.997678dc.js"><link rel="prefetch" href="../assets/js/26.bdc2a6fc.js"><link rel="prefetch" href="../assets/js/27.14956264.js"><link rel="prefetch" href="../assets/js/28.3e836b17.js"><link rel="prefetch" href="../assets/js/29.88996b95.js"><link rel="prefetch" href="../assets/js/30.26760ff7.js"><link rel="prefetch" href="../assets/js/31.169925f0.js"><link rel="prefetch" href="../assets/js/32.fc848ffd.js"><link rel="prefetch" href="../assets/js/33.4a7b20b5.js"><link rel="prefetch" href="../assets/js/34.080a5b2d.js"><link rel="prefetch" href="../assets/js/35.5664384b.js"><link rel="prefetch" href="../assets/js/36.e6f2d7c1.js"><link rel="prefetch" href="../assets/js/37.7fffb245.js"><link rel="prefetch" href="../assets/js/38.2a818c4b.js"><link rel="prefetch" href="../assets/js/39.b75d1d1f.js"><link rel="prefetch" href="../assets/js/40.eebb261c.js"><link rel="prefetch" href="../assets/js/41.f590ad3d.js"><link rel="prefetch" href="../assets/js/42.3a5a9ad1.js"><link rel="prefetch" href="../assets/js/43.315af682.js"><link rel="prefetch" href="../assets/js/44.e699cfc9.js"><link rel="prefetch" href="../assets/js/45.070488b1.js"><link rel="prefetch" href="../assets/js/46.29f9b10c.js"><link rel="prefetch" href="../assets/js/47.a49c9691.js"><link rel="prefetch" href="../assets/js/48.901960ce.js"><link rel="prefetch" href="../assets/js/49.90f26de6.js"><link rel="prefetch" href="../assets/js/5.1822a725.js"><link rel="prefetch" href="../assets/js/50.d98ea474.js"><link rel="prefetch" href="../assets/js/51.7e81edb0.js"><link rel="prefetch" href="../assets/js/52.ae744cc4.js"><link rel="prefetch" href="../assets/js/53.a87579ea.js"><link rel="prefetch" href="../assets/js/54.09cf1cd4.js"><link rel="prefetch" href="../assets/js/55.8dbe32a9.js"><link rel="prefetch" href="../assets/js/56.4cc4e86e.js"><link rel="prefetch" href="../assets/js/57.5fa9755d.js"><link rel="prefetch" href="../assets/js/58.8a511947.js"><link rel="prefetch" href="../assets/js/59.7f699905.js"><link rel="prefetch" href="../assets/js/60.5cd6bf05.js"><link rel="prefetch" href="../assets/js/61.8e3a5252.js"><link rel="prefetch" href="../assets/js/62.c196204b.js"><link rel="prefetch" href="../assets/js/63.cf346896.js"><link rel="prefetch" href="../assets/js/65.2d0a71fc.js"><link rel="prefetch" href="../assets/js/66.7155e206.js"><link rel="prefetch" href="../assets/js/67.40077362.js"><link rel="prefetch" href="../assets/js/68.5bf58e97.js"><link rel="prefetch" href="../assets/js/69.d955f75b.js"><link rel="prefetch" href="../assets/js/7.1d1f1c24.js"><link rel="prefetch" href="../assets/js/70.a8cce98b.js"><link rel="prefetch" href="../assets/js/71.da703543.js"><link rel="prefetch" href="../assets/js/72.c04dfa52.js"><link rel="prefetch" href="../assets/js/73.d07ef280.js"><link rel="prefetch" href="../assets/js/74.8461f6a0.js"><link rel="prefetch" href="../assets/js/75.b4e8bf21.js"><link rel="prefetch" href="../assets/js/76.2df0e4fa.js"><link rel="prefetch" href="../assets/js/77.80fba507.js"><link rel="prefetch" href="../assets/js/78.167eb1f2.js"><link rel="prefetch" href="../assets/js/79.8de07f16.js"><link rel="prefetch" href="../assets/js/80.62ae9ff8.js"><link rel="prefetch" href="../assets/js/81.6d66b374.js"><link rel="prefetch" href="../assets/js/82.3200cf78.js"><link rel="prefetch" href="../assets/js/83.1d9c3fce.js"><link rel="prefetch" href="../assets/js/84.d9f947a9.js"><link rel="prefetch" href="../assets/js/85.85a4c72a.js"><link rel="prefetch" href="../assets/js/86.93c948f9.js"><link rel="prefetch" href="../assets/js/87.468468cc.js"><link rel="prefetch" href="../assets/js/88.e5fe3f13.js"><link rel="prefetch" href="../assets/js/89.724b1038.js"><link rel="prefetch" href="../assets/js/90.16fb68a1.js"><link rel="prefetch" href="../assets/js/91.338ca55d.js"><link rel="prefetch" href="../assets/js/92.508f7300.js"><link rel="prefetch" href="../assets/js/93.50d169d1.js"><link rel="prefetch" href="../assets/js/94.54461a32.js"><link rel="prefetch" href="../assets/js/95.8f712236.js"><link rel="prefetch" href="../assets/js/96.4c8d5f01.js"><link rel="prefetch" href="../assets/js/97.da347ee4.js"><link rel="prefetch" href="../assets/js/98.94680b58.js"><link rel="prefetch" href="../assets/js/99.7d895609.js">
		<link rel="stylesheet" href="../assets/css/0.styles.61168ff3.css">
		<script>
			var _hmt = _hmt || [];
			(function() {
				var hm = document.createElement("script");
				hm.src = "../../hm.baidu.com/hm81c3.js?43e7eadc8f61e1e064906952da7d51f0";
				var s = document.getElementsByTagName("script")[0];
				s.parentNode.insertBefore(hm, s);
			})();
		</script>
	</head>
	<body>
		<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="../index.html" class="home-link router-link-active"><img src="../common/logo.png" alt="uView Vue3.0 横空出世，继承uView1.0意志，再战江湖，风云再起！" class="logo"> <span class="site-name can-hide">uView</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="../guide/demo.html" class="nav-link">
  指南
</a></div><div class="nav-item"><a href="intro.html" class="nav-link">
  组件
</a></div><div class="nav-item"><a href="../js/intro.html" class="nav-link">
  JS
</a></div><div class="nav-item"><a href="../layout/intro.html" class="nav-link">
  模板
</a></div><div class="nav-item"><a href="resource.html" class="nav-link">
  资源
</a></div><div class="nav-item"><a href="https://ext.dcloud.net.cn/plugin?id=6692" target="_blank" rel="noopener noreferrer" class="nav-link external">
  插件市场
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><a href="https://gitee.com/vk-uni/vk-uview-ui" target="_blank" rel="noopener noreferrer" class="nav-link external">
  Gitee
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="DCloud插件市场" class="dropdown-title"><span class="title">VK其他插件</span> <span class="arrow down"></span></button> <button type="button" aria-label="DCloud插件市场" class="mobile-dropdown-title"><span class="title">VK其他插件</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=2204" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-unicloud-router（client端）
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=5043" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-unicloud-admin（admin端）
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=5642" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-uni-pay（统一支付）
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=2848" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-data-goods-sku-popup（sku组件）
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=6692" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-uview-ui（uView Vue3.0）
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=6158" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-redis
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=6089" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-unicloud数据库一键搬家工具
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=6663" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-hbx插件（开发辅助工具）
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/publisher?id=164406" target="_blank" rel="noopener noreferrer" class="nav-link external">
  查看更多
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="原版uView" class="dropdown-title"><span class="title">原版uView</span> <span class="arrow down"></span></button> <button type="button" aria-label="原版uView" class="mobile-dropdown-title"><span class="title">原版uView</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://v1.uviewui.com/" target="_blank" rel="noopener noreferrer" class="nav-link external">
  1.X
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://uviewui.com/" target="_blank" rel="noopener noreferrer" class="nav-link external">
  2.X
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <div><aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="../guide/demo.html" class="nav-link">
  指南
</a></div><div class="nav-item"><a href="intro.html" class="nav-link">
  组件
</a></div><div class="nav-item"><a href="../js/intro.html" class="nav-link">
  JS
</a></div><div class="nav-item"><a href="../layout/intro.html" class="nav-link">
  模板
</a></div><div class="nav-item"><a href="resource.html" class="nav-link">
  资源
</a></div><div class="nav-item"><a href="https://ext.dcloud.net.cn/plugin?id=6692" target="_blank" rel="noopener noreferrer" class="nav-link external">
  插件市场
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><a href="https://gitee.com/vk-uni/vk-uview-ui" target="_blank" rel="noopener noreferrer" class="nav-link external">
  Gitee
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="DCloud插件市场" class="dropdown-title"><span class="title">VK其他插件</span> <span class="arrow down"></span></button> <button type="button" aria-label="DCloud插件市场" class="mobile-dropdown-title"><span class="title">VK其他插件</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=2204" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-unicloud-router（client端）
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=5043" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-unicloud-admin（admin端）
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=5642" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-uni-pay（统一支付）
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=2848" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-data-goods-sku-popup（sku组件）
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=6692" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-uview-ui（uView Vue3.0）
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=6158" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-redis
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=6089" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-unicloud数据库一键搬家工具
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/plugin?id=6663" target="_blank" rel="noopener noreferrer" class="nav-link external">
  vk-hbx插件（开发辅助工具）
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://ext.dcloud.net.cn/publisher?id=164406" target="_blank" rel="noopener noreferrer" class="nav-link external">
  查看更多
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="原版uView" class="dropdown-title"><span class="title">原版uView</span> <span class="arrow down"></span></button> <button type="button" aria-label="原版uView" class="mobile-dropdown-title"><span class="title">原版uView</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://v1.uviewui.com/" target="_blank" rel="noopener noreferrer" class="nav-link external">
  1.X
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://uviewui.com/" target="_blank" rel="noopener noreferrer" class="nav-link external">
  2.X
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li></ul></div></div> <!----></nav>  <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>起步</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="addQQGroup.html" class="sidebar-link">加QQ群交流反馈</a></li><li><a href="intro.html" class="sidebar-link">介绍</a></li><li><a href="install.html" class="sidebar-link">安装</a></li><li><a href="quickstart.html" class="sidebar-link">快速上手</a></li><li><a href="common.html" class="sidebar-link">内置样式</a></li><li><a href="feature.html" class="sidebar-link">注意事项</a></li><li><a href="nvue.html" class="sidebar-link">Nvue排错指南</a></li><li><a href="changelog.html" class="sidebar-link">更新日志</a></li><li><a href="changeGuide.html" class="sidebar-link">升级指南</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>组件</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><section class="sidebar-group is-sub-group depth-1"><p class="sidebar-heading"><span>基础组件</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="color.html" class="sidebar-link">Color 色彩</a></li><li><a href="icon.html" class="sidebar-link">Icon 图标</a></li><li><a href="image.html" class="sidebar-link">Image 图片</a></li><li><a href="button.html" class="sidebar-link">Button 按钮</a></li><li><a href="layout.html" class="sidebar-link">Layout 布局</a></li><li><a href="cell.html" class="sidebar-link">Cell 单元格</a></li><li><a href="badge.html" class="sidebar-link">Badge 徽标数</a></li><li><a href="tag.html" class="sidebar-link">Tag 标签</a></li></ul></section></li><li><section class="sidebar-group is-sub-group depth-1"><p class="sidebar-heading"><span>表单组件</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="input.html" class="sidebar-link">Input 输入框</a></li><li><a href="form.html" class="sidebar-link">Form 表单</a></li><li><a href="calendar.html" class="sidebar-link">Calendar 日历</a></li><li><a href="select.html" class="sidebar-link">Select 列选择器</a></li><li><a href="keyboard.html" class="sidebar-link">Keyboard 键盘</a></li><li><a href="picker.html" class="sidebar-link">Picker 选择器</a></li><li><a href="rate.html" class="sidebar-link">Rate 评分</a></li><li><a href="search.html" class="sidebar-link">Search 搜索</a></li><li><a href="numberBox.html" class="sidebar-link">NumberBox 步进器</a></li><li><a href="upload.html" class="sidebar-link">Upload 上传</a></li><li><a href="verificationCode.html" class="sidebar-link">VerificationCode 验证码倒计时</a></li><li><a href="field.html" class="sidebar-link">Field 输入框</a></li><li><a href="checkbox.html" class="sidebar-link">Checkbox 复选框</a></li><li><a href="radio.html" class="sidebar-link">Radio 单选框</a></li><li><a href="switch.html" class="sidebar-link">Switch 开关选择器</a></li><li><a href="slider.html" class="sidebar-link">Slider 滑动选择器</a></li></ul></section></li><li><section class="sidebar-group is-sub-group depth-1"><p class="sidebar-heading"><span>数据组件</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="circleProgress.html" class="sidebar-link">CircleProgress 圆形进度条</a></li><li><a href="lineProgress.html" class="sidebar-link">LineProgress 线形进度条</a></li><li><a href="table.html" class="sidebar-link">Table 表格</a></li><li><a href="countDown.html" class="sidebar-link">CountDown 倒计时</a></li><li><a href="countTo.html" class="sidebar-link">CountTo 数字滚动</a></li></ul></section></li><li><section class="sidebar-group is-sub-group depth-1"><p class="sidebar-heading"><span>反馈组件</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="actionSheet.html" class="sidebar-link">ActionSheet 操作菜单</a></li><li><a href="alertTips.html" class="sidebar-link">AlertTips 警告提示</a></li><li><a href="toast.html" class="sidebar-link">Toast 消息提示</a></li><li><a href="noticeBar.html" class="sidebar-link">NoticeBar 滚动通知</a></li><li><a href="topTips.html" class="sidebar-link">TopTips 顶部提示</a></li><li><a href="collapse.html" class="sidebar-link">Collapse 折叠面板</a></li><li><a href="popup.html" class="sidebar-link">Popup 弹出层</a></li><li><a href="swipeAction.html" class="sidebar-link">SwipeAction 滑动操作</a></li><li><a href="modal.html" class="sidebar-link">Modal 模态框</a></li><li><a href="fullScreen.html" class="sidebar-link">fullScreen 压窗屏</a></li></ul></section></li><li><section class="sidebar-group is-sub-group depth-1"><p class="sidebar-heading open"><span>布局组件</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="line.html" class="sidebar-link">Line 线条</a></li><li><a href="card.html" class="sidebar-link">Card 卡片</a></li><li><a href="mask.html" class="sidebar-link">Mask 遮罩层</a></li><li><a href="noNetwork.html" class="sidebar-link">NoNetwork 无网络提示</a></li><li><a href="grid.html" class="sidebar-link">Grid 宫格布局</a></li><li><a href="swiper.html" class="sidebar-link">Swiper 轮播图</a></li><li><a href="timeLine.html" class="sidebar-link">TimeLine 时间轴</a></li><li><a href="skeleton.html" class="sidebar-link">Skeleton 骨架屏</a></li><li><a href="sticky.html" class="sidebar-link">Sticky 吸顶</a></li><li><a href="waterfall.html" aria-current="page" class="active sidebar-link">Waterfall 瀑布流</a></li><li><a href="divider.html" class="sidebar-link">Divider 分割线</a></li></ul></section></li><li><section class="sidebar-group is-sub-group depth-1"><p class="sidebar-heading"><span>导航组件</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="dropdown.html" class="sidebar-link">Dropdown 下拉菜单</a></li><li><a href="tabbar.html" class="sidebar-link">Tabbar 底部导航栏</a></li><li><a href="backTop.html" class="sidebar-link">BackTop 返回顶部</a></li><li><a href="navbar.html" class="sidebar-link">Navbar 自定义导航栏</a></li><li><a href="tabs.html" class="sidebar-link">tabs 标签</a></li><li><a href="tabsSwiper.html" class="sidebar-link">tabsSwiper 全屏选项卡</a></li><li><a href="subsection.html" class="sidebar-link">Subsection 分段器</a></li><li><a href="indexList.html" class="sidebar-link">IndexList 索引列表</a></li><li><a href="steps.html" class="sidebar-link">Steps 步骤条</a></li><li><a href="empty.html" class="sidebar-link">Empty 内容为空</a></li><li><a href="link.html" class="sidebar-link">Link 超链接</a></li><li><a href="section.html" class="sidebar-link">Section 查看更多</a></li></ul></section></li><li><section class="sidebar-group is-sub-group depth-1"><p class="sidebar-heading"><span>其他组件</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="parse.html" class="sidebar-link">Parse 富文本解析器</a></li><li><a href="messageInput.html" class="sidebar-link">MessageInput 验证码输入</a></li><li><a href="avatarCropper.html" class="sidebar-link">AvatarCropper 头像裁剪</a></li><li><a href="loadMore.html" class="sidebar-link">loadMore 加载更多</a></li><li><a href="readMore.html" class="sidebar-link">ReadMore 展开阅读更多</a></li><li><a href="lazyLoad.html" class="sidebar-link">LazyLoad 懒加载</a></li><li><a href="gap.html" class="sidebar-link">Gap 间隔槽</a></li><li><a href="avatar.html" class="sidebar-link">Avatar 头像</a></li><li><a href="loading.html" class="sidebar-link">Loading 加载动画</a></li></ul></section></li></ul></section></li></ul> </aside></div> <main class="page"> <div class="theme-default-content content__default" data-v-6c0f19d2 data-v-6c0f19d2><h2 id="waterfall-瀑布流" data-v-6c0f19d2><a href="#waterfall-瀑布流" class="header-anchor" data-v-6c0f19d2>#</a> Waterfall 瀑布流 <a href="#api" class="anchor" data-v-2680b636 data-v-6c0f19d2><img src="../common/to_api.png" data-v-2680b636></a></h2> <div class="demo-model" data-v-05b12073 data-v-6c0f19d2><div class="model-content" data-v-05b12073><iframe scrolling="auto" frameborder="0" src="https://uviewdoc.fsq.pub/#/pages/componentsB/waterfall/index" id="demo-modal" class="iframe" data-v-05b12073></iframe></div></div> <p data-v-6c0f19d2>这是一个瀑布流形式的组件，内容分为左右两列，结合uView的<code data-v-6c0f19d2>懒加载</code>组件效果更佳。<br data-v-6c0f19d2>
相较于某些只是奇偶数左右分别，或者没有利用vue作用域插槽的做法，uView的瀑布流实现了真正的
组件化，搭配<a href="lazyLoad.html" data-v-6c0f19d2>LazyLoad 懒加载</a>和<a href="loadMore.html" data-v-6c0f19d2>loadMore 加载更多</a>组件，让您开箱即用，眼前一亮。</p> <div class="custom-block custom-block-for-no-api" data-v-f42e604e data-v-6c0f19d2><div class="custom-block tip" data-v-f42e604e><p class="custom-block-title" data-v-f42e604e>提示</p> <p data-v-f42e604e>
			由于右侧的演示是通过iframe标签引入的，缺少了手机端运行的相关API，或者因为演示区域太小，或者电脑分别率不够高
				，导致演示可能会有问题，手机端有不会这些问题，请在右上角的&quot;演示&quot;中用手机扫码查看对应的效果。
		</p></div></div> <div class="custom-block warning" data-v-6c0f19d2><p class="custom-block-title" data-v-6c0f19d2>注意</p> <ol data-v-6c0f19d2><li data-v-6c0f19d2>在微信小程序中，需要hx2.8.11才支持在懒加载中结合其他组件</li> <li data-v-6c0f19d2>从1.2.8版本起，新增了清空列表和移除某条数据的组件方法，原<code data-v-6c0f19d2>flow-list</code>参数，需要改为<code data-v-6c0f19d2>v-model</code>接收传值</li> <li data-v-6c0f19d2>由于hx的问题，支付宝小程序需要hx2.8.2版本及以上才支持本组件</li></ol></div> <h3 id="平台差异说明" data-v-6c0f19d2><a href="#平台差异说明" class="header-anchor" data-v-6c0f19d2>#</a> 平台差异说明</h3> <table data-v-6c0f19d2><thead data-v-6c0f19d2><tr data-v-6c0f19d2><th style="text-align:center;" data-v-6c0f19d2>App</th> <th style="text-align:center;" data-v-6c0f19d2>H5</th> <th style="text-align:center;" data-v-6c0f19d2>微信小程序</th> <th style="text-align:center;" data-v-6c0f19d2>支付宝小程序</th> <th style="text-align:center;" data-v-6c0f19d2>百度小程序</th> <th style="text-align:center;" data-v-6c0f19d2>头条小程序</th> <th style="text-align:center;" data-v-6c0f19d2>QQ小程序</th></tr></thead> <tbody data-v-6c0f19d2><tr data-v-6c0f19d2><td style="text-align:center;" data-v-6c0f19d2>√</td> <td style="text-align:center;" data-v-6c0f19d2>√</td> <td style="text-align:center;" data-v-6c0f19d2>√</td> <td style="text-align:center;" data-v-6c0f19d2>√</td> <td style="text-align:center;" data-v-6c0f19d2>√</td> <td style="text-align:center;" data-v-6c0f19d2>√</td> <td style="text-align:center;" data-v-6c0f19d2>√</td></tr></tbody></table> <h3 id="基本使用" data-v-6c0f19d2><a href="#基本使用" class="header-anchor" data-v-6c0f19d2>#</a> 基本使用</h3> <p data-v-6c0f19d2>本组件利用了vue的作用域插槽(<a href="https://cn.vuejs.org/v2/guide/components-slots.html#%E4%BD%9C%E7%94%A8%E5%9F%9F%E6%8F%92%E6%A7%BD" target="_blank" rel="noopener noreferrer" data-v-6c0f19d2>详见vue文档<span data-v-6c0f19d2><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>)特性，
将传入<code data-v-6c0f19d2>waterfall</code>内部的数据，通过<code data-v-6c0f19d2>slot</code>(作用域插槽)让用户能在父组件中引用和配置对应的数据，这样做的
原因是可以让用户自定义列表<code data-v-6c0f19d2>item</code>的结构和样式，达到真正的组件化。</p> <p data-v-6c0f19d2>需要注意的是，组件内部导出的数据，需要使用<code data-v-6c0f19d2>template</code>元素接收，同时通过<code data-v-6c0f19d2>v-slot</code>指定左右两列的<code data-v-6c0f19d2>slot</code>，如
<code data-v-6c0f19d2>v-slot:left=&quot;list&quot;</code>，这里的<code data-v-6c0f19d2>list</code>变量名为用户自定义的(意味着您可以起名叫<code data-v-6c0f19d2>data</code>都是没问题的)，它为一个对象，它内部分别有<code data-v-6c0f19d2>leftList</code>和<code data-v-6c0f19d2>rightList</code>，用于
渲染左右两列的数据，见如下完整示例：</p> <h3 id="核心代码" data-v-6c0f19d2><a href="#核心代码" class="header-anchor" data-v-6c0f19d2>#</a> 核心代码</h3> <div class="language-html extra-class" data-v-6c0f19d2><pre class="language-html" data-v-6c0f19d2><code data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>u-waterfall</span> <span class="token attr-name" data-v-6c0f19d2>v-model</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>flowList<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
	<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>template</span> <span class="token attr-name" data-v-6c0f19d2><span class="token namespace" data-v-6c0f19d2>v-slot:</span>left</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>{leftList}<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
		<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>view</span> <span class="token attr-name" data-v-6c0f19d2>v-for</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>(item, index) in leftList<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span> <span class="token attr-name" data-v-6c0f19d2>:key</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>index<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
			<span class="token comment" data-v-6c0f19d2>&lt;!-- 这里编写您的内容，item为您传递给v-model的数组元素 --&gt;</span>
		<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>view</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
	<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>template</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
	<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>template</span> <span class="token attr-name" data-v-6c0f19d2><span class="token namespace" data-v-6c0f19d2>v-slot:</span>right</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>{rightList}<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
		<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>view</span> <span class="token attr-name" data-v-6c0f19d2>v-for</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>(item, index) in rightList<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span> <span class="token attr-name" data-v-6c0f19d2>:key</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>index<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
			<span class="token comment" data-v-6c0f19d2>&lt;!-- 这里编写您的内容，item为您传递给v-model的数组元素 --&gt;</span>
		<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>view</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
	<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>template</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>u-waterfall</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
</code></pre></div><h3 id="移除或清空数据" data-v-6c0f19d2><a href="#移除或清空数据" class="header-anchor" data-v-6c0f19d2>#</a> 移除或清空数据</h3> <p data-v-6c0f19d2>移除或者清空，都需要通过<code data-v-6c0f19d2>ref</code>调用组件内部的方法。</p> <ol data-v-6c0f19d2><li data-v-6c0f19d2>移除数据</li></ol> <p data-v-6c0f19d2>组件内部方法名为<code data-v-6c0f19d2>remove</code>，需要传入&quot;id&quot;值，这个&quot;id&quot;键值的名称配置参数为<code data-v-6c0f19d2>idKey</code>(默认<code data-v-6c0f19d2>id</code>)，如下：</p> <p data-v-6c0f19d2>假设您的数据为:</p> <div class="language-js extra-class" data-v-6c0f19d2><pre class="language-js" data-v-6c0f19d2><code data-v-6c0f19d2><span class="token keyword" data-v-6c0f19d2>let</span> arr <span class="token operator" data-v-6c0f19d2>=</span> <span class="token punctuation" data-v-6c0f19d2>[</span>
	<span class="token punctuation" data-v-6c0f19d2>{</span><span class="token literal-property property" data-v-6c0f19d2>idx</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token number" data-v-6c0f19d2>1</span><span class="token punctuation" data-v-6c0f19d2>,</span> <span class="token literal-property property" data-v-6c0f19d2>name</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'lisa'</span><span class="token punctuation" data-v-6c0f19d2>}</span><span class="token punctuation" data-v-6c0f19d2>,</span>
	<span class="token punctuation" data-v-6c0f19d2>{</span><span class="token literal-property property" data-v-6c0f19d2>idx</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token number" data-v-6c0f19d2>2</span><span class="token punctuation" data-v-6c0f19d2>,</span> <span class="token literal-property property" data-v-6c0f19d2>name</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'mary'</span><span class="token punctuation" data-v-6c0f19d2>}</span>
<span class="token punctuation" data-v-6c0f19d2>]</span>
</code></pre></div><p data-v-6c0f19d2>那么您应该配置<code data-v-6c0f19d2>idKey</code>为<code data-v-6c0f19d2>idx</code>。</p> <ol start="2" data-v-6c0f19d2><li data-v-6c0f19d2>清空数据</li></ol> <p data-v-6c0f19d2>通过<code data-v-6c0f19d2>ref</code>手动调用组件内部的<code data-v-6c0f19d2>clear</code>方法，可以清空左右两列的数据。</p> <p data-v-6c0f19d2>说明：具体实现方法，请见下方的示例代码</p> <h3 id="完整应用示例" data-v-6c0f19d2><a href="#完整应用示例" class="header-anchor" data-v-6c0f19d2>#</a> 完整应用示例</h3> <div class="language-html extra-class" data-v-6c0f19d2><pre class="language-html" data-v-6c0f19d2><code data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>template</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
	<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>view</span> <span class="token attr-name" data-v-6c0f19d2>class</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>wrap<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
		<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>u-button</span> <span class="token attr-name" data-v-6c0f19d2>@click</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>clear<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>清空列表<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>u-button</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
		<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>u-waterfall</span> <span class="token attr-name" data-v-6c0f19d2>v-model</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>flowList<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span> <span class="token attr-name" data-v-6c0f19d2>ref</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>uWaterfall1<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
			<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>template</span> <span class="token attr-name" data-v-6c0f19d2><span class="token namespace" data-v-6c0f19d2>v-slot:</span>left</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>{leftList}<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
				<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>view</span> <span class="token attr-name" data-v-6c0f19d2>class</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>demo-warter<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span> <span class="token attr-name" data-v-6c0f19d2>v-for</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>(item, index) in leftList<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span> <span class="token attr-name" data-v-6c0f19d2>:key</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>index<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
					<span class="token comment" data-v-6c0f19d2>&lt;!-- 警告：微信小程序中需要hx2.8.11版本才支持在template中结合其他组件，比如下方的lazy-load组件 --&gt;</span>
					<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>u-lazy-load</span> <span class="token attr-name" data-v-6c0f19d2>threshold</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>-450<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span> <span class="token attr-name" data-v-6c0f19d2>border-radius</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>10<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span> <span class="token attr-name" data-v-6c0f19d2>:image</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>item.image<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span> <span class="token attr-name" data-v-6c0f19d2>:index</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>index<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span><span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>u-lazy-load</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
					<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>view</span> <span class="token attr-name" data-v-6c0f19d2>class</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>demo-title<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
						{{item.title}}
					<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>view</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
					<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>view</span> <span class="token attr-name" data-v-6c0f19d2>class</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>demo-price<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
						{{item.price}}元
					<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>view</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
					<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>view</span> <span class="token attr-name" data-v-6c0f19d2>class</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>demo-tag<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
						<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>view</span> <span class="token attr-name" data-v-6c0f19d2>class</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>demo-tag-owner<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
							自营
						<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>view</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
						<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>view</span> <span class="token attr-name" data-v-6c0f19d2>class</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>demo-tag-text<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
							放心购
						<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>view</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
					<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>view</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
					<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>view</span> <span class="token attr-name" data-v-6c0f19d2>class</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>demo-shop<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
						{{item.shop}}
					<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>view</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
					<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>u-icon</span> <span class="token attr-name" data-v-6c0f19d2>name</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>close-circle-fill<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span> <span class="token attr-name" data-v-6c0f19d2>color</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>#fa3534<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span> <span class="token attr-name" data-v-6c0f19d2>size</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>34<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span> <span class="token attr-name" data-v-6c0f19d2>class</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>u-close<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span> <span class="token attr-name" data-v-6c0f19d2>@click</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>remove(item.id)<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span><span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>u-icon</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
				<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>view</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
			<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>template</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
			<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>template</span> <span class="token attr-name" data-v-6c0f19d2><span class="token namespace" data-v-6c0f19d2>v-slot:</span>right</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>{rightList}<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
				<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>view</span> <span class="token attr-name" data-v-6c0f19d2>class</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>demo-warter<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span> <span class="token attr-name" data-v-6c0f19d2>v-for</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>(item, index) in rightList<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span> <span class="token attr-name" data-v-6c0f19d2>:key</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>index<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
					<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>u-lazy-load</span> <span class="token attr-name" data-v-6c0f19d2>threshold</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>-450<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span> <span class="token attr-name" data-v-6c0f19d2>border-radius</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>10<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span> <span class="token attr-name" data-v-6c0f19d2>:image</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>item.image<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span> <span class="token attr-name" data-v-6c0f19d2>:index</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>index<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span><span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>u-lazy-load</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
					<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>view</span> <span class="token attr-name" data-v-6c0f19d2>class</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>demo-title<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
						{{item.title}}
					<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>view</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
					<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>view</span> <span class="token attr-name" data-v-6c0f19d2>class</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>demo-price<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
						{{item.price}}元
					<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>view</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
					<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>view</span> <span class="token attr-name" data-v-6c0f19d2>class</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>demo-tag<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
						<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>view</span> <span class="token attr-name" data-v-6c0f19d2>class</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>demo-tag-owner<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
							自营
						<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>view</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
						<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>view</span> <span class="token attr-name" data-v-6c0f19d2>class</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>demo-tag-text<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
							放心购
						<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>view</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
					<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>view</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
					<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>view</span> <span class="token attr-name" data-v-6c0f19d2>class</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>demo-shop<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
						{{item.shop}}
					<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>view</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
					<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>u-icon</span> <span class="token attr-name" data-v-6c0f19d2>name</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>close-circle-fill<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span> <span class="token attr-name" data-v-6c0f19d2>color</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>#fa3534<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span> <span class="token attr-name" data-v-6c0f19d2>size</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>34<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span> <span class="token attr-name" data-v-6c0f19d2>class</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>u-close<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span> <span class="token attr-name" data-v-6c0f19d2>@click</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>remove(item.id)<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span><span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>u-icon</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
				<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>view</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
			<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>template</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
		<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>u-waterfall</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
		<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>u-loadmore</span> <span class="token attr-name" data-v-6c0f19d2>bg-color</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>rgb(240, 240, 240)<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span> <span class="token attr-name" data-v-6c0f19d2>:status</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>loadStatus<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span> <span class="token attr-name" data-v-6c0f19d2>@loadmore</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>addRandomData<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span><span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>u-loadmore</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
	<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>view</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>template</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>

<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>script</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span><span class="token script" data-v-6c0f19d2><span class="token language-javascript" data-v-6c0f19d2>
	<span class="token keyword" data-v-6c0f19d2>export</span> <span class="token keyword" data-v-6c0f19d2>default</span> <span class="token punctuation" data-v-6c0f19d2>{</span>
		<span class="token function" data-v-6c0f19d2>data</span><span class="token punctuation" data-v-6c0f19d2>(</span><span class="token punctuation" data-v-6c0f19d2>)</span> <span class="token punctuation" data-v-6c0f19d2>{</span>
			<span class="token keyword" data-v-6c0f19d2>return</span> <span class="token punctuation" data-v-6c0f19d2>{</span>
				<span class="token literal-property property" data-v-6c0f19d2>loadStatus</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'loadmore'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
				<span class="token literal-property property" data-v-6c0f19d2>flowList</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token punctuation" data-v-6c0f19d2>[</span><span class="token punctuation" data-v-6c0f19d2>]</span><span class="token punctuation" data-v-6c0f19d2>,</span>
				<span class="token literal-property property" data-v-6c0f19d2>list</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token punctuation" data-v-6c0f19d2>[</span>
					<span class="token punctuation" data-v-6c0f19d2>{</span>
						<span class="token literal-property property" data-v-6c0f19d2>price</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token number" data-v-6c0f19d2>35</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>title</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'北国风光，千里冰封，万里雪飘'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>shop</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'李白杜甫白居易旗舰店'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>image</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'http://pic.sc.chinaz.com/Files/pic/pic9/202002/zzpic23327_s.jpg'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
					<span class="token punctuation" data-v-6c0f19d2>}</span><span class="token punctuation" data-v-6c0f19d2>,</span>
					<span class="token punctuation" data-v-6c0f19d2>{</span>
						<span class="token literal-property property" data-v-6c0f19d2>price</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token number" data-v-6c0f19d2>75</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>title</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'望长城内外，惟余莽莽'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>shop</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'李白杜甫白居易旗舰店'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>image</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'http://pic.sc.chinaz.com/Files/pic/pic9/202002/zzpic23325_s.jpg'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
					<span class="token punctuation" data-v-6c0f19d2>}</span><span class="token punctuation" data-v-6c0f19d2>,</span>
					<span class="token punctuation" data-v-6c0f19d2>{</span>
						<span class="token literal-property property" data-v-6c0f19d2>price</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token number" data-v-6c0f19d2>385</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>title</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'大河上下，顿失滔滔'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>shop</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'李白杜甫白居易旗舰店'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>image</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
					<span class="token punctuation" data-v-6c0f19d2>}</span><span class="token punctuation" data-v-6c0f19d2>,</span>
					<span class="token punctuation" data-v-6c0f19d2>{</span>
						<span class="token literal-property property" data-v-6c0f19d2>price</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token number" data-v-6c0f19d2>784</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>title</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'欲与天公试比高'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>shop</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'李白杜甫白居易旗舰店'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>image</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/zzpic23369_s.jpg'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
					<span class="token punctuation" data-v-6c0f19d2>}</span><span class="token punctuation" data-v-6c0f19d2>,</span>
					<span class="token punctuation" data-v-6c0f19d2>{</span>
						<span class="token literal-property property" data-v-6c0f19d2>price</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token number" data-v-6c0f19d2>7891</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>title</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'须晴日，看红装素裹，分外妖娆'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>shop</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'李白杜甫白居易旗舰店'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>image</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2130_s.jpg'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
					<span class="token punctuation" data-v-6c0f19d2>}</span><span class="token punctuation" data-v-6c0f19d2>,</span>
					<span class="token punctuation" data-v-6c0f19d2>{</span>
						<span class="token literal-property property" data-v-6c0f19d2>price</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token number" data-v-6c0f19d2>2341</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>shop</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'李白杜甫白居易旗舰店'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>title</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'江山如此多娇，引无数英雄竞折腰'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>image</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'http://pic1.sc.chinaz.com/Files/pic/pic9/202002/zzpic23346_s.jpg'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
					<span class="token punctuation" data-v-6c0f19d2>}</span><span class="token punctuation" data-v-6c0f19d2>,</span>
					<span class="token punctuation" data-v-6c0f19d2>{</span>
						<span class="token literal-property property" data-v-6c0f19d2>price</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token number" data-v-6c0f19d2>661</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>shop</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'李白杜甫白居易旗舰店'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>title</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'惜秦皇汉武，略输文采'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>image</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'http://pic1.sc.chinaz.com/Files/pic/pic9/202002/zzpic23344_s.jpg'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
					<span class="token punctuation" data-v-6c0f19d2>}</span><span class="token punctuation" data-v-6c0f19d2>,</span>
					<span class="token punctuation" data-v-6c0f19d2>{</span>
						<span class="token literal-property property" data-v-6c0f19d2>price</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token number" data-v-6c0f19d2>1654</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>title</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'唐宗宋祖，稍逊风骚'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>shop</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'李白杜甫白居易旗舰店'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>image</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'http://pic1.sc.chinaz.com/Files/pic/pic9/202002/zzpic23343_s.jpg'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
					<span class="token punctuation" data-v-6c0f19d2>}</span><span class="token punctuation" data-v-6c0f19d2>,</span>
					<span class="token punctuation" data-v-6c0f19d2>{</span>
						<span class="token literal-property property" data-v-6c0f19d2>price</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token number" data-v-6c0f19d2>1678</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>title</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'一代天骄，成吉思汗'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>shop</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'李白杜甫白居易旗舰店'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>image</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'http://pic1.sc.chinaz.com/Files/pic/pic9/202002/zzpic23343_s.jpg'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
					<span class="token punctuation" data-v-6c0f19d2>}</span><span class="token punctuation" data-v-6c0f19d2>,</span>
					<span class="token punctuation" data-v-6c0f19d2>{</span>
						<span class="token literal-property property" data-v-6c0f19d2>price</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token number" data-v-6c0f19d2>924</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>title</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'只识弯弓射大雕'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>shop</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'李白杜甫白居易旗舰店'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>image</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'http://pic1.sc.chinaz.com/Files/pic/pic9/202002/zzpic23343_s.jpg'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
					<span class="token punctuation" data-v-6c0f19d2>}</span><span class="token punctuation" data-v-6c0f19d2>,</span>
					<span class="token punctuation" data-v-6c0f19d2>{</span>
						<span class="token literal-property property" data-v-6c0f19d2>price</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token number" data-v-6c0f19d2>8243</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>title</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'俱往矣，数风流人物，还看今朝'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>shop</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'李白杜甫白居易旗舰店'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
						<span class="token literal-property property" data-v-6c0f19d2>image</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token string" data-v-6c0f19d2>'http://pic1.sc.chinaz.com/Files/pic/pic9/202002/zzpic23343_s.jpg'</span><span class="token punctuation" data-v-6c0f19d2>,</span>
					<span class="token punctuation" data-v-6c0f19d2>}</span><span class="token punctuation" data-v-6c0f19d2>,</span>
				<span class="token punctuation" data-v-6c0f19d2>]</span>
			<span class="token punctuation" data-v-6c0f19d2>}</span>
		<span class="token punctuation" data-v-6c0f19d2>}</span><span class="token punctuation" data-v-6c0f19d2>,</span>
		<span class="token function" data-v-6c0f19d2>onLoad</span><span class="token punctuation" data-v-6c0f19d2>(</span><span class="token punctuation" data-v-6c0f19d2>)</span> <span class="token punctuation" data-v-6c0f19d2>{</span>
			<span class="token keyword" data-v-6c0f19d2>this</span><span class="token punctuation" data-v-6c0f19d2>.</span><span class="token function" data-v-6c0f19d2>addRandomData</span><span class="token punctuation" data-v-6c0f19d2>(</span><span class="token punctuation" data-v-6c0f19d2>)</span><span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token punctuation" data-v-6c0f19d2>}</span><span class="token punctuation" data-v-6c0f19d2>,</span>
		<span class="token function" data-v-6c0f19d2>onReachBottom</span><span class="token punctuation" data-v-6c0f19d2>(</span><span class="token punctuation" data-v-6c0f19d2>)</span> <span class="token punctuation" data-v-6c0f19d2>{</span>
			<span class="token keyword" data-v-6c0f19d2>this</span><span class="token punctuation" data-v-6c0f19d2>.</span>loadStatus <span class="token operator" data-v-6c0f19d2>=</span> <span class="token string" data-v-6c0f19d2>'loading'</span><span class="token punctuation" data-v-6c0f19d2>;</span>
			<span class="token comment" data-v-6c0f19d2>// 模拟数据加载</span>
			<span class="token function" data-v-6c0f19d2>setTimeout</span><span class="token punctuation" data-v-6c0f19d2>(</span><span class="token punctuation" data-v-6c0f19d2>(</span><span class="token punctuation" data-v-6c0f19d2>)</span> <span class="token operator" data-v-6c0f19d2>=&gt;</span> <span class="token punctuation" data-v-6c0f19d2>{</span>
				<span class="token keyword" data-v-6c0f19d2>this</span><span class="token punctuation" data-v-6c0f19d2>.</span><span class="token function" data-v-6c0f19d2>addRandomData</span><span class="token punctuation" data-v-6c0f19d2>(</span><span class="token punctuation" data-v-6c0f19d2>)</span><span class="token punctuation" data-v-6c0f19d2>;</span>
				<span class="token keyword" data-v-6c0f19d2>this</span><span class="token punctuation" data-v-6c0f19d2>.</span>loadStatus <span class="token operator" data-v-6c0f19d2>=</span> <span class="token string" data-v-6c0f19d2>'loadmore'</span><span class="token punctuation" data-v-6c0f19d2>;</span>
			<span class="token punctuation" data-v-6c0f19d2>}</span><span class="token punctuation" data-v-6c0f19d2>,</span> <span class="token number" data-v-6c0f19d2>1000</span><span class="token punctuation" data-v-6c0f19d2>)</span>
		<span class="token punctuation" data-v-6c0f19d2>}</span><span class="token punctuation" data-v-6c0f19d2>,</span>
		<span class="token literal-property property" data-v-6c0f19d2>methods</span><span class="token operator" data-v-6c0f19d2>:</span> <span class="token punctuation" data-v-6c0f19d2>{</span>
			<span class="token function" data-v-6c0f19d2>addRandomData</span><span class="token punctuation" data-v-6c0f19d2>(</span><span class="token punctuation" data-v-6c0f19d2>)</span> <span class="token punctuation" data-v-6c0f19d2>{</span>
				<span class="token keyword" data-v-6c0f19d2>for</span><span class="token punctuation" data-v-6c0f19d2>(</span><span class="token keyword" data-v-6c0f19d2>let</span> i <span class="token operator" data-v-6c0f19d2>=</span> <span class="token number" data-v-6c0f19d2>0</span><span class="token punctuation" data-v-6c0f19d2>;</span> i <span class="token operator" data-v-6c0f19d2>&lt;</span> <span class="token number" data-v-6c0f19d2>10</span><span class="token punctuation" data-v-6c0f19d2>;</span> i<span class="token operator" data-v-6c0f19d2>++</span><span class="token punctuation" data-v-6c0f19d2>)</span> <span class="token punctuation" data-v-6c0f19d2>{</span>
					<span class="token keyword" data-v-6c0f19d2>let</span> index <span class="token operator" data-v-6c0f19d2>=</span> <span class="token keyword" data-v-6c0f19d2>this</span><span class="token punctuation" data-v-6c0f19d2>.</span>$u<span class="token punctuation" data-v-6c0f19d2>.</span><span class="token function" data-v-6c0f19d2>random</span><span class="token punctuation" data-v-6c0f19d2>(</span><span class="token number" data-v-6c0f19d2>0</span><span class="token punctuation" data-v-6c0f19d2>,</span> <span class="token keyword" data-v-6c0f19d2>this</span><span class="token punctuation" data-v-6c0f19d2>.</span>list<span class="token punctuation" data-v-6c0f19d2>.</span>length <span class="token operator" data-v-6c0f19d2>-</span> <span class="token number" data-v-6c0f19d2>1</span><span class="token punctuation" data-v-6c0f19d2>)</span><span class="token punctuation" data-v-6c0f19d2>;</span>
					<span class="token comment" data-v-6c0f19d2>// 先转成字符串再转成对象，避免数组对象引用导致数据混乱</span>
					<span class="token keyword" data-v-6c0f19d2>let</span> item <span class="token operator" data-v-6c0f19d2>=</span> <span class="token constant" data-v-6c0f19d2>JSON</span><span class="token punctuation" data-v-6c0f19d2>.</span><span class="token function" data-v-6c0f19d2>parse</span><span class="token punctuation" data-v-6c0f19d2>(</span><span class="token constant" data-v-6c0f19d2>JSON</span><span class="token punctuation" data-v-6c0f19d2>.</span><span class="token function" data-v-6c0f19d2>stringify</span><span class="token punctuation" data-v-6c0f19d2>(</span><span class="token keyword" data-v-6c0f19d2>this</span><span class="token punctuation" data-v-6c0f19d2>.</span>list<span class="token punctuation" data-v-6c0f19d2>[</span>index<span class="token punctuation" data-v-6c0f19d2>]</span><span class="token punctuation" data-v-6c0f19d2>)</span><span class="token punctuation" data-v-6c0f19d2>)</span>
					item<span class="token punctuation" data-v-6c0f19d2>.</span>id <span class="token operator" data-v-6c0f19d2>=</span> <span class="token keyword" data-v-6c0f19d2>this</span><span class="token punctuation" data-v-6c0f19d2>.</span>$u<span class="token punctuation" data-v-6c0f19d2>.</span><span class="token function" data-v-6c0f19d2>guid</span><span class="token punctuation" data-v-6c0f19d2>(</span><span class="token punctuation" data-v-6c0f19d2>)</span><span class="token punctuation" data-v-6c0f19d2>;</span>
					<span class="token keyword" data-v-6c0f19d2>this</span><span class="token punctuation" data-v-6c0f19d2>.</span>flowList<span class="token punctuation" data-v-6c0f19d2>.</span><span class="token function" data-v-6c0f19d2>push</span><span class="token punctuation" data-v-6c0f19d2>(</span>item<span class="token punctuation" data-v-6c0f19d2>)</span><span class="token punctuation" data-v-6c0f19d2>;</span>
				<span class="token punctuation" data-v-6c0f19d2>}</span>
			<span class="token punctuation" data-v-6c0f19d2>}</span><span class="token punctuation" data-v-6c0f19d2>,</span>
			<span class="token function" data-v-6c0f19d2>remove</span><span class="token punctuation" data-v-6c0f19d2>(</span><span class="token parameter" data-v-6c0f19d2>id</span><span class="token punctuation" data-v-6c0f19d2>)</span> <span class="token punctuation" data-v-6c0f19d2>{</span>
				<span class="token keyword" data-v-6c0f19d2>this</span><span class="token punctuation" data-v-6c0f19d2>.</span>$refs<span class="token punctuation" data-v-6c0f19d2>.</span>uWaterfall1<span class="token punctuation" data-v-6c0f19d2>.</span><span class="token function" data-v-6c0f19d2>remove</span><span class="token punctuation" data-v-6c0f19d2>(</span>id<span class="token punctuation" data-v-6c0f19d2>)</span><span class="token punctuation" data-v-6c0f19d2>;</span>
			<span class="token punctuation" data-v-6c0f19d2>}</span><span class="token punctuation" data-v-6c0f19d2>,</span>
			<span class="token function" data-v-6c0f19d2>clear</span><span class="token punctuation" data-v-6c0f19d2>(</span><span class="token punctuation" data-v-6c0f19d2>)</span> <span class="token punctuation" data-v-6c0f19d2>{</span>
				<span class="token keyword" data-v-6c0f19d2>this</span><span class="token punctuation" data-v-6c0f19d2>.</span>$refs<span class="token punctuation" data-v-6c0f19d2>.</span>uWaterfall1<span class="token punctuation" data-v-6c0f19d2>.</span><span class="token function" data-v-6c0f19d2>clear</span><span class="token punctuation" data-v-6c0f19d2>(</span><span class="token punctuation" data-v-6c0f19d2>)</span><span class="token punctuation" data-v-6c0f19d2>;</span>
			<span class="token punctuation" data-v-6c0f19d2>}</span>
		<span class="token punctuation" data-v-6c0f19d2>}</span>
	<span class="token punctuation" data-v-6c0f19d2>}</span>
</span></span><span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>script</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>

<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>style</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span><span class="token style" data-v-6c0f19d2><span class="token language-css" data-v-6c0f19d2>
	<span class="token comment" data-v-6c0f19d2>/* page不能写带scope的style标签中，否则无效 */</span>
	<span class="token selector" data-v-6c0f19d2>page</span> <span class="token punctuation" data-v-6c0f19d2>{</span>
		<span class="token property" data-v-6c0f19d2>background-color</span><span class="token punctuation" data-v-6c0f19d2>:</span> <span class="token function" data-v-6c0f19d2>rgb</span><span class="token punctuation" data-v-6c0f19d2>(</span>240<span class="token punctuation" data-v-6c0f19d2>,</span> 240<span class="token punctuation" data-v-6c0f19d2>,</span> 240<span class="token punctuation" data-v-6c0f19d2>)</span><span class="token punctuation" data-v-6c0f19d2>;</span>
	<span class="token punctuation" data-v-6c0f19d2>}</span>
</span></span><span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>style</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>

<span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;</span>style</span> <span class="token attr-name" data-v-6c0f19d2>lang</span><span class="token attr-value" data-v-6c0f19d2><span class="token punctuation attr-equals" data-v-6c0f19d2>=</span><span class="token punctuation" data-v-6c0f19d2>&quot;</span>scss<span class="token punctuation" data-v-6c0f19d2>&quot;</span></span> <span class="token attr-name" data-v-6c0f19d2>scoped</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span><span class="token style" data-v-6c0f19d2><span class="token language-css" data-v-6c0f19d2>
	<span class="token selector" data-v-6c0f19d2>.demo-warter</span> <span class="token punctuation" data-v-6c0f19d2>{</span>
		<span class="token property" data-v-6c0f19d2>border-radius</span><span class="token punctuation" data-v-6c0f19d2>:</span> 8px<span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token property" data-v-6c0f19d2>margin</span><span class="token punctuation" data-v-6c0f19d2>:</span> 5px<span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token property" data-v-6c0f19d2>background-color</span><span class="token punctuation" data-v-6c0f19d2>:</span> #ffffff<span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token property" data-v-6c0f19d2>padding</span><span class="token punctuation" data-v-6c0f19d2>:</span> 8px<span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token property" data-v-6c0f19d2>position</span><span class="token punctuation" data-v-6c0f19d2>:</span> relative<span class="token punctuation" data-v-6c0f19d2>;</span>
	<span class="token punctuation" data-v-6c0f19d2>}</span>
	
	<span class="token selector" data-v-6c0f19d2>.u-close</span> <span class="token punctuation" data-v-6c0f19d2>{</span>
		<span class="token property" data-v-6c0f19d2>position</span><span class="token punctuation" data-v-6c0f19d2>:</span> absolute<span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token property" data-v-6c0f19d2>top</span><span class="token punctuation" data-v-6c0f19d2>:</span> 32rpx<span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token property" data-v-6c0f19d2>right</span><span class="token punctuation" data-v-6c0f19d2>:</span> 32rpx<span class="token punctuation" data-v-6c0f19d2>;</span>
	<span class="token punctuation" data-v-6c0f19d2>}</span>
	
	<span class="token selector" data-v-6c0f19d2>.demo-image</span> <span class="token punctuation" data-v-6c0f19d2>{</span>
		<span class="token property" data-v-6c0f19d2>width</span><span class="token punctuation" data-v-6c0f19d2>:</span> 100%<span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token property" data-v-6c0f19d2>border-radius</span><span class="token punctuation" data-v-6c0f19d2>:</span> 4px<span class="token punctuation" data-v-6c0f19d2>;</span>
	<span class="token punctuation" data-v-6c0f19d2>}</span>
	
	<span class="token selector" data-v-6c0f19d2>.demo-title</span> <span class="token punctuation" data-v-6c0f19d2>{</span>
		<span class="token property" data-v-6c0f19d2>font-size</span><span class="token punctuation" data-v-6c0f19d2>:</span> 30rpx<span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token property" data-v-6c0f19d2>margin-top</span><span class="token punctuation" data-v-6c0f19d2>:</span> 5px<span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token property" data-v-6c0f19d2>color</span><span class="token punctuation" data-v-6c0f19d2>:</span> $u-main-color<span class="token punctuation" data-v-6c0f19d2>;</span>
	<span class="token punctuation" data-v-6c0f19d2>}</span>
	
	<span class="token selector" data-v-6c0f19d2>.demo-tag</span> <span class="token punctuation" data-v-6c0f19d2>{</span>
		<span class="token property" data-v-6c0f19d2>display</span><span class="token punctuation" data-v-6c0f19d2>:</span> flex<span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token property" data-v-6c0f19d2>margin-top</span><span class="token punctuation" data-v-6c0f19d2>:</span> 5px<span class="token punctuation" data-v-6c0f19d2>;</span>
	<span class="token punctuation" data-v-6c0f19d2>}</span>
	
	<span class="token selector" data-v-6c0f19d2>.demo-tag-owner</span> <span class="token punctuation" data-v-6c0f19d2>{</span>
		<span class="token property" data-v-6c0f19d2>background-color</span><span class="token punctuation" data-v-6c0f19d2>:</span> $u-type-error<span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token property" data-v-6c0f19d2>color</span><span class="token punctuation" data-v-6c0f19d2>:</span> #FFFFFF<span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token property" data-v-6c0f19d2>display</span><span class="token punctuation" data-v-6c0f19d2>:</span> flex<span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token property" data-v-6c0f19d2>align-items</span><span class="token punctuation" data-v-6c0f19d2>:</span> center<span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token property" data-v-6c0f19d2>padding</span><span class="token punctuation" data-v-6c0f19d2>:</span> 4rpx 14rpx<span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token property" data-v-6c0f19d2>border-radius</span><span class="token punctuation" data-v-6c0f19d2>:</span> 50rpx<span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token property" data-v-6c0f19d2>font-size</span><span class="token punctuation" data-v-6c0f19d2>:</span> 20rpx<span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token property" data-v-6c0f19d2>line-height</span><span class="token punctuation" data-v-6c0f19d2>:</span> 1<span class="token punctuation" data-v-6c0f19d2>;</span>
	<span class="token punctuation" data-v-6c0f19d2>}</span>
	
	<span class="token selector" data-v-6c0f19d2>.demo-tag-text</span> <span class="token punctuation" data-v-6c0f19d2>{</span>
		<span class="token property" data-v-6c0f19d2>border</span><span class="token punctuation" data-v-6c0f19d2>:</span> 1px solid $u-type-primary<span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token property" data-v-6c0f19d2>color</span><span class="token punctuation" data-v-6c0f19d2>:</span> $u-type-primary<span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token property" data-v-6c0f19d2>margin-left</span><span class="token punctuation" data-v-6c0f19d2>:</span> 10px<span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token property" data-v-6c0f19d2>border-radius</span><span class="token punctuation" data-v-6c0f19d2>:</span> 50rpx<span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token property" data-v-6c0f19d2>line-height</span><span class="token punctuation" data-v-6c0f19d2>:</span> 1<span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token property" data-v-6c0f19d2>padding</span><span class="token punctuation" data-v-6c0f19d2>:</span> 4rpx 14rpx<span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token property" data-v-6c0f19d2>display</span><span class="token punctuation" data-v-6c0f19d2>:</span> flex<span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token property" data-v-6c0f19d2>align-items</span><span class="token punctuation" data-v-6c0f19d2>:</span> center<span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token property" data-v-6c0f19d2>border-radius</span><span class="token punctuation" data-v-6c0f19d2>:</span> 50rpx<span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token property" data-v-6c0f19d2>font-size</span><span class="token punctuation" data-v-6c0f19d2>:</span> 20rpx<span class="token punctuation" data-v-6c0f19d2>;</span>
	<span class="token punctuation" data-v-6c0f19d2>}</span>
	
	<span class="token selector" data-v-6c0f19d2>.demo-price</span> <span class="token punctuation" data-v-6c0f19d2>{</span>
		<span class="token property" data-v-6c0f19d2>font-size</span><span class="token punctuation" data-v-6c0f19d2>:</span> 30rpx<span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token property" data-v-6c0f19d2>color</span><span class="token punctuation" data-v-6c0f19d2>:</span> $u-type-error<span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token property" data-v-6c0f19d2>margin-top</span><span class="token punctuation" data-v-6c0f19d2>:</span> 5px<span class="token punctuation" data-v-6c0f19d2>;</span>
	<span class="token punctuation" data-v-6c0f19d2>}</span>
	
	<span class="token selector" data-v-6c0f19d2>.demo-shop</span> <span class="token punctuation" data-v-6c0f19d2>{</span>
		<span class="token property" data-v-6c0f19d2>font-size</span><span class="token punctuation" data-v-6c0f19d2>:</span> 22rpx<span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token property" data-v-6c0f19d2>color</span><span class="token punctuation" data-v-6c0f19d2>:</span> $u-tips-color<span class="token punctuation" data-v-6c0f19d2>;</span>
		<span class="token property" data-v-6c0f19d2>margin-top</span><span class="token punctuation" data-v-6c0f19d2>:</span> 5px<span class="token punctuation" data-v-6c0f19d2>;</span>
	<span class="token punctuation" data-v-6c0f19d2>}</span>
</span></span><span class="token tag" data-v-6c0f19d2><span class="token tag" data-v-6c0f19d2><span class="token punctuation" data-v-6c0f19d2>&lt;/</span>style</span><span class="token punctuation" data-v-6c0f19d2>&gt;</span></span>
</code></pre></div><h3 id="注意事项" data-v-6c0f19d2><a href="#注意事项" class="header-anchor" data-v-6c0f19d2>#</a> 注意事项</h3> <ol data-v-6c0f19d2><li data-v-6c0f19d2>上方的示例中，结合了uView的<a href="lazyLoad.html" data-v-6c0f19d2>lazyload懒加载</a>和<a href="loadmore-2.html" data-v-6c0f19d2>loadmore加载更多</a>组件，具体用法，请见文档。</li> <li data-v-6c0f19d2>需要通过<code data-v-6c0f19d2>v-model</code>传递参数，将数据传递给组件，组件内部将每次新增的数据，通过动态查询左右列的高度
添加到高度低的一列。</li> <li data-v-6c0f19d2>组件有一个<code data-v-6c0f19d2>add-time</code>参数，用于将单条数据添加到队列的时间间隔，因为图片加载是需要时间的，所以瀑布流左右列
的高度会不定时改变，<code data-v-6c0f19d2>add-time</code>值越大，对程序效果越好，但是对用户来说，越大值可能就是以能感受的速度一个一个添加
到队列尾部的，所以这是一个双面性的结果。</li> <li data-v-6c0f19d2>由于图片加载完成的时机是不确定的，导致图片加载完成时，队列的高度会发生改变，而且这个时机是无法确定的，
所以每次添加数据的时候，单次请求的所有数据中最后一个数据不一定能准确添加高度更低的队列一侧，但是可以保证下一次请求数据的第一条
能准确添加到队列高度低的一侧。</li></ol> <h3 id="api" data-v-6c0f19d2><a href="#api" class="header-anchor" data-v-6c0f19d2>#</a> API</h3> <h3 id="indexbar-props" data-v-6c0f19d2><a href="#indexbar-props" class="header-anchor" data-v-6c0f19d2>#</a> IndexBar Props</h3> <p data-v-6c0f19d2>注意：1.2.8版本后，通过<code data-v-6c0f19d2>v-model</code>双向绑定传递参数，因为组件内部需要修改父组件的值。</p> <table data-v-6c0f19d2><thead data-v-6c0f19d2><tr data-v-6c0f19d2><th data-v-6c0f19d2>参数</th> <th data-v-6c0f19d2>说明</th> <th data-v-6c0f19d2>类型</th> <th data-v-6c0f19d2>默认值</th> <th data-v-6c0f19d2>可选值</th></tr></thead> <tbody data-v-6c0f19d2><tr data-v-6c0f19d2><td data-v-6c0f19d2>add-time</td> <td data-v-6c0f19d2>单条数据添加到队列的时间间隔，单位ms，见上方注意事项说明</td> <td data-v-6c0f19d2>String | Number</td> <td data-v-6c0f19d2>200</td> <td data-v-6c0f19d2>-</td></tr> <tr data-v-6c0f19d2><td data-v-6c0f19d2>idKey</td> <td data-v-6c0f19d2>数据的唯一值的键名，见上方说明</td> <td data-v-6c0f19d2>String</td> <td data-v-6c0f19d2>id</td> <td data-v-6c0f19d2>-</td></tr></tbody></table> <h3 id="methods" data-v-6c0f19d2><a href="#methods" class="header-anchor" data-v-6c0f19d2>#</a> Methods</h3> <p data-v-6c0f19d2>这些为组件内部的方法，需要通过<code data-v-6c0f19d2>ref</code>调用</p> <table data-v-6c0f19d2><thead data-v-6c0f19d2><tr data-v-6c0f19d2><th data-v-6c0f19d2>参数</th> <th data-v-6c0f19d2>说明</th></tr></thead> <tbody data-v-6c0f19d2><tr data-v-6c0f19d2><td data-v-6c0f19d2>clear</td> <td data-v-6c0f19d2>清空列表数据</td></tr> <tr data-v-6c0f19d2><td data-v-6c0f19d2>remove(id)</td> <td data-v-6c0f19d2><code data-v-6c0f19d2>id</code>为唯一的&quot;id&quot;值，见上方说明</td></tr></tbody></table></div> <footer class="page-edit"><!----> <div class="edit-link"><a href="https://gitee.com/vk-uni/vk-uview-ui-doc.git/edit/master/docs/components/waterfall.md" target="_blank" rel="noopener noreferrer">编辑此页（一起来纠错与优化，方便你我Ta）</a> <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></div> <div class="last-updated"><span class="prefix">最后修改时间:</span> <span class="time">4/27/2023, 11:50:17 AM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
      ←
      <a href="sticky.html" class="prev">
        Sticky 吸顶
      </a></span> <span class="next"><a href="divider.html">
        Divider 分割线
      </a>
      →
    </span></p></div> </main></div><div class="global-ui"></div></div>
		<script src="../assets/js/app.06a5b7ec.js" defer></script><script src="../assets/js/3.b1cc55a0.js" defer></script><script src="../assets/js/4.4b844322.js" defer></script><script src="../assets/js/64.0525bb5d.js" defer></script><script src="../assets/js/19.2b0b9da7.js" defer></script><script src="../assets/js/9.ba52e2b0.js" defer></script><script src="../assets/js/8.70b4860e.js" defer></script><script src="../assets/js/6.2c513bee.js" defer></script>
	</body>

<!-- Mirrored from vkuviewdoc.fsq.pub/components/waterfall.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 May 2025 17:31:02 GMT -->
</html>
